//
// Created by secon on 2025/3/12.
//

#ifndef UNTITLED_TASK_H
#define UNTITLED_TASK_H
#include <string>
#include <sstream>
#include <iomanip>

class Task {
public:
    int id;
    std::string description;
    int priority;
    std::string dueDate;

    std::string toString() const{
        std::ostringstream oss;
        oss << "ID: " << id
            <<", 描述: " << description
            <<", 优先级: " << priority
            <<", 截止日期: " << dueDate;

        return oss.str();
    }
};


#endif //UNTITLED_TASK_H
